import request from "@/utils/request";

export function getGoodList(data) {
	return request({
		url: "/python/getGoodList",
		method: "get",
		headers: { "content-type": "application/json;charset=UTF-8" },
		params: data || {},
	});
}

export function addGood(data) {
	return request({
		url: "/python/addGood",
		method: "post",
		headers: { "content-type": "application/json;charset=UTF-8" },
		data: data || {},
	});
}

export function updateGood(data) {
	return request({
		url: "/python/updateGood",
		method: "post",
		headers: { "content-type": "application/json;charset=UTF-8" },
		data: data || {},
	});
}

export function deletGood(data) {
	return request({
		url: "/python/deletGood",
		method: "post",
		headers: { "content-type": "application/json;charset=UTF-8" },
		data: data || {},
	});
}

export function getLikeList(data) {
	return request({
		url: "/python/getLikeList",
		method: "get",
		headers: { "content-type": "application/json;charset=UTF-8" },
		params: data || {},
	});
}

export function deletLike(data) {
	return request({
		url: "/python/deletLike",
		method: "post",
		headers: { "content-type": "application/json;charset=UTF-8" },
		data: data || {},
	});
}

export function getCommentList(data) {
	return request({
		url: "/python/getCommentList",
		method: "get",
		headers: { "content-type": "application/json;charset=UTF-8" },
		params: data || {},
	});
}

export function deletComment(data) {
	return request({
		url: "/python/deletComment",
		method: "post",
		headers: { "content-type": "application/json;charset=UTF-8" },
		data: data || {},
	});
}

export function getCollectList(data) {
	return request({
		url: "/python/getCollectList",
		method: "get",
		headers: { "content-type": "application/json;charset=UTF-8" },
		params: data || {},
	});
}

export function deletCollect(data) {
	return request({
		url: "/python/deletCollect",
		method: "post",
		headers: { "content-type": "application/json;charset=UTF-8" },
		data: data || {},
	});
}
